#ifndef ENCODE_H
#define ENCODE_H

#include "..\PICData\HexFileLine.h"

BOOL	DumpFlatBinData(BYTE* stm32, DWORD from, DWORD to, LPCTSTR name);
BOOL	DumpEncodeBinData(STM32_BIN& binData,LPCTSTR outputFile,size_t &blockSize);
BOOL	LoadHexForSTM32(LPCTSTR filename, STM32_BIN	&STM32BinData, BYTE* STM32_Flash);
BOOL	CreateBlockData(STM32_BIN	&STM32BinData,  BYTE* STM32_Flash, size_t &blockSize);
void	SwapBlock(STM32_BIN	&STM32BinData, size_t &blockSize);
BOOL	EncodeBlockData(STM32_BIN	&STM32BinData, size_t &blockSize);
BOOL	DecodeBin(LPCTSTR binFile);

#endif